package com.sudo.boot.mapper.sys.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import com.sudo.boot.mybatisflex.base.BaseEntity;
import lombok.*;

/**
 * 系统角色  实体类。
 *
 * @author admins
 * @since 2023-10-13
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "sys_role")
@EqualsAndHashCode(callSuper = true)
public class SysRole extends BaseEntity {

    /**
     * 乐观锁
     */
    @Id(keyType = KeyType.Auto)
    private Integer id;

    /**
     * 角色名
     */
    private String roleName;

    /**
     * 角色代码
     */
    private String roleCode;

    /**
     * 角色状态
     */
    private String status;

    /**
     * 备注
     */
    private String note;

    /**
     * 删除标识
     */
    @Column(isLogicDelete = true)
    private Boolean delFlag;

}
